<?php
/**
 * Created by PhpStorm.
 * User: liuchaozhong
 * Date: 2018/8/16
 * Time: 上午9:33
 */
namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class TaskConfig extends Model
{
    protected $table = 'task_config';

    //任务类型
    public $task_type_arr = ['金币任务', '现金任务'];
    public $action_arr = ['跳转页面', '分享小程序', '分享签到', '邀请好友观看视频'];

    //关联任务记录
    public function g_task_log()
    {
        return $this->hasMany(TaskConfigLog::class, 'task_id');
    }

}